package com.yunhe.option.repository.base;

import com.yunhe.option.domain.base.VoltageLevel;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface VoltageLevelRepository extends Neo4jRepository<VoltageLevel, Long> {
    @Query("start c=Node({id}) match (c)-[]-(v:VoltageLevel) return v")
    Iterable<VoltageLevel> findByCostPriceId(@Param("id") Long costPriceId);
}
